Skip to content

Fix CrashLoopBackOff, ramdisk-logs no inotifywait#564

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
hjensas:OSPRH-17520
Jun 16, 2025
Merged

Fix CrashLoopBackOff, ramdisk-logs no inotifywait#564
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
hjensas:OSPRH-17520

Conversation

@hjensas
Copy link
Copy Markdown
Contributor

@hjensas hjensas commented Jun 16, 2025

When updating the operators we end up recreating the conductor and inspector deployments. But the old service images does not yet have the required command: inotifywait - because of the missing command the pod enter CrashLoopBackOff state.

To resolve the issue, the OpenstackVersion must be patched to update the container images.

To workaround this issue, add a check for the inotifywait command, and in case it does not exist:

  • a) Print a Warning
  • b) Start a tail for follow /dev/null (tail -f /dev/null) to have the container do nothing forever.
    (e.g. until it is restarted with new service container images after patching the OpenstackVersion.)

Jira: OSPRH-17520

When updating the operators we end up recreating the conductor and
inspector deployments. But the old service images does not yet have
the required command: inotifywait - because of the missing command
the pod enter CrashLoopBackOff state.

To resolve the issue, the OpenstackVersion must be patch to update
the container images.

To workaround this issue, add a check for the inotifywait command,
and in case it does not exist:
 a) Print a Warning
 b) Starta a tail for follow /dev/null to have the container do
    nothing forever. (e.g. until it is restarted with new service
    container images after patching the OpenstackVersion.)

Jira: OSPRH-17520
@hjensas hjensas requested a review from steveb June 16, 2025 15:43
@openshift-ci openshift-ci bot requested a review from abays June 16, 2025 15:43
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Jun 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hjensas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown
Collaborator

@steveb steveb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

tail exits on SIGTERM, which is good

@openshift-ci openshift-ci bot added the lgtm label Jun 16, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit e634c08 into openstack-k8s-operators:main Jun 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants